<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id ="login_header">
    <form action ="registreer.jsp">
        <input type="submit" value="Registreer">
    </form>
    <div id='error'>
        ${error}
    </div>
    <br />
    <form action ="login" method="POST">
        <c:choose>
            <c:when test="${empty sessionScope.userId}">
                inlognaam:<input type="text" name="login_naam">
                wachtwoord:<input type="password" name="login_wachtwoord">
                <input type="submit" value="Login" />
            </c:when>
            <c:otherwise>
                Klik <a href="EnqueteOphaler">hier</a> om naar de hoofdpagina te gaan.
            </c:otherwise>
        </c:choose>
        <input type="submit" value="Log uit" name="logout">
    </form>
</div>